package com.powernode.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.powernode.common.LxlException;
import com.powernode.entity.UmsUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author lxl
 * @since 2022-03-27
 */
public interface UmsUserService extends IService<UmsUser> {
    IPage<UmsUser> list(Integer pageNo,Integer pageSize,String value);
    Boolean add(String name, String phone, String email, String password, MultipartFile file);
    Boolean check(String fieldName,String value,Long id);
    Boolean update(Long id,String name, String phone, String email, MultipartFile file);
    Boolean del(Long id,Integer active);
    List<UmsUser> getActive();
    String login(String username,String password) throws LxlException;
}
